import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/login',
    name: 'login',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/Login.vue')
    }
  },
  {
    path: '/QRcode',
    name: 'QRcode',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/QRcode.vue')
    }
  },
  {
    path: '/bookMeeting',
    name: 'bookMeeting',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/bookMeeting.vue')
    }
  },
  {
    path: '/fastMeeting',
    name: 'fastMeeting',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/fastMeeting.vue')
    }
  },
  {
    path: '/joinMeeting',
    name: 'joinMeeting',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/joinMeeting.vue')
    }
  },
  {
    path: '/offlineBoard',
    name: 'offlineBoard',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/offlineBoard.vue')
    }
  },
  {
    path: '/meeting',
    name: 'meeting',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/meeting.vue')
    }
  },
  {
    path: '/videoTest',
    name: 'videoTest',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/videoTest.vue')
    }
  },
  {
    path: '/register',
    name: 'register',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/register.vue')
    }
  },
  {
    path: '/class',
    name: 'class',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/class.vue')
    }
  },
  {
    path: '/scanResult',
    name: 'scanResult',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/scanResult.vue')
    }
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
